const state = {
	sidebar: {
		opened: false
	},
}

const mutations = {
	TOGGLE_SIDEBAR: (state: any) => {
		state.sidebar.opened = !state.sidebar.opened
	}
}

const actions = {
	toggleSideBar({ commit }: any) {
		commit('TOGGLE_SIDEBAR')
	}
}

export default {
	namespaced: true,
	state,
	mutations,
	actions
}
